package com.krzysztofadamczyk.dddex.domain.model.customer.events;

import com.krzysztofadamczyk.dddex.domain.model.Address;
import com.krzysztofadamczyk.dddex.domain.model.customer.Customer;

public class CustomerAddressChangedEvent {

    private final Customer customer;
    private final Address newAddress;

    public CustomerAddressChangedEvent(Customer customer, Address newAddress) {
        this.customer = customer;
        this.newAddress = newAddress;
    }

    public Customer getCustomer() {
        return customer;
    }

    public Address getNewAddress() {
        return newAddress;
    }

}
